package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

/**
 * 作者：SimGa
 * 日期：2021/1/23
 * 时间：16:53
 * 包名：com.vitabuybuy.tv.dto
 */
public class GoodsCommentDto {


    /**
     * images : http://106.55.47.138/attachment/jpg/5561/2726_29813.jpg;http://106.55.47.138/attachment/jpg/2095/2727_3565.jpg;
     * item : {"specifications":"{\"EN\":\"orange L\",\"CN\":\"橙色 L\",\"MA\":\"orange L\"}"}
     * product : {"name":"{\"MA\":\"卫衣\",\"EN\":\"卫衣\",\"CN\":\"卫衣\"}","id":62}
     * scores : 4
     * createTime : 2021-01-26 15:19:03
     * videos :
     * id : 36
     * store : {"name":"李艺科潮男装卖店","logo":"http://106.55.47.138/attachment/jpg/4052/793_15950.jpg","id":12}
     * content : 444
     * account : {"nickname":"赵泽涛666","id":20,"avatar":"http://106.55.47.138/attachment/jpg/6707/2375_6605.jpg"}
     * enabled : true
     * order : {"id":637}
     */

    private String images;
    /**
     * specifications : {"EN":"orange L","CN":"橙色 L","MA":"orange L"}
     */

    private ItemBean item;
    /**
     * name : {"MA":"卫衣","EN":"卫衣","CN":"卫衣"}
     * id : 62
     */

    private ProductBean product;
    private int scores;
    private String createTime;
    private String videos;
    private String cover;
    private int id;
    /**
     * name : 李艺科潮男装卖店
     * logo : http://106.55.47.138/attachment/jpg/4052/793_15950.jpg
     * id : 12
     */

    private StoreBean store;
    private String content;
    private String reply;
    /**
     * nickname : 赵泽涛666
     * id : 20
     * avatar : http://106.55.47.138/attachment/jpg/6707/2375_6605.jpg
     */

    private AccountBean account;
    private boolean enabled;
    /**
     * id : 637
     */

    private OrderBean order;

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public ItemBean getItem() {
        return item;
    }

    public void setItem(ItemBean item) {
        this.item = item;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public int getScores() {
        return scores;
    }

    public void setScores(int scores) {
        this.scores = scores;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getVideos() {
        return videos;
    }

    public void setVideos(String videos) {
        this.videos = videos;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public StoreBean getStore() {
        return store;
    }

    public void setStore(StoreBean store) {
        this.store = store;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public AccountBean getAccount() {
        return account;
    }

    public void setAccount(AccountBean account) {
        this.account = account;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public static class ItemBean {
        private String specifications;

        public String getSpecifications() {
            String[] split = specifications.split(";");
            specifications = "";
            for (String spec : split) {
                String str = LanaugeUtils.returnStrByLocation(spec);
                specifications = specifications.concat(str).concat(";");
            }
            return specifications.isEmpty() ? specifications : specifications.substring(0, specifications.length() - 1);
        }

        public void setSpecifications(String specifications) {
            this.specifications = specifications;
        }
    }

    public static class ProductBean {
        private String name;
        private int id;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class StoreBean {
        private String name;
        private String logo;
        private int id;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class AccountBean {
        private String nickname;
        private int id;
        private String avatar;

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }
    }

    public static class OrderBean {
        private int id;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }
}
